import agentscope
from agentscope.message import Msg
from examples.opinion_simulation.conclusionAgent import conclusionAgent

agentscope.init(
        model_configs="./configs/model_configs.json",
        agent_configs="./configs/agent_configs.json",
        project="Multi-Agent Conversation",
        save_api_invoke=True,
    )

clag=conclusionAgent(
                name="col",
                model_config_name="my-qwen-plus-latest",  # replace by your model config name
            )
# 测试用例1：充足对话
history = "主张渐进式产品迭代"
dialogs = [Msg("Dev","本次需要重构底层架构","user"),
          Msg("Jarvis","建议分阶段实施","assistant"),
          Msg("Dev","客户要求月底前上线","user")]
print(clag.conclusion(history, dialogs))